package cn.kgc.mcartoon.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 漫画收藏表
 * </p>
 *
 * @author christopher
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mm_cartoon_collection")
public class MmCartoonCollectionDO extends Model<MmCartoonCollectionDO> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
      @TableId(value = "collectionId", type = IdType.AUTO)
    private Long collectionid;

    /**
     * 漫画表主键ID
     */
    @TableField("cartoonId")
    private Long cartoonid;

    /**
     * 用户ID
     */
    @TableField("userId")
    private Long userid;

    /**
     * 状态 0-->默认没处理；1-->收藏；2-->取消收藏
     */
    private Integer state;

    /**
     * 创建人
     */
    @TableField("createdUserId")
    private Long createduserid;

    /**
     * 修改人
     */
    @TableField("updatedUserId")
    private Long updateduserid;

    /**
     * 是否删除(0:否,1:是)
     */
    @TableField("isDelete")
    private Integer isdelete;

    /**
     * 创建时间
     */
    @TableField("creatdTime")
    private Date creatdtime;

    /**
     * 修改时间
     */
    @TableField("updatedTime")
    private Date updatedtime;


    @Override
    protected Serializable pkVal() {
        return this.collectionid;
    }

}
